<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/component/pear/css/pear.css" />
</head>
<body>
<ul id="organizationTree" class="dtree organizationTree" data-id="9527"></ul>
<script src="/component/layui/layui.js"></script>
<script src="/component/pear/pear.js"></script>
<script>
layui.use(['jquery','dtree'],function(){
    let $ = layui.jquery;
    let dtree = layui.dtree;
    let DTree = dtree.render({
        elem: "#organizationTree",
        //data: data,
        initLevel: "2", //默认展开层级为1
        line: true, // 有线树
        ficon: ["1", "-1"], // 设定一级图标样式。0表示方形加减图标，8表示小圆点图标
        icon: ["0", "2"], // 设定二级图标样式。0表示文件夹图标，5表示叶子图标
        method: 'get',
        url: "../../admin/data/organizationtree.json"
    });
})
</script>
</body>
</html>
